package com.cmf.myproject.dal.mybatis.model;

import java.io.Serializable;
import java.util.Date;

public class SysRoleResource implements Serializable {
    /**
     * 
     * @mbggenerated
     */
    private Long id;

    /**
     * 角色信息ID
     * @mbggenerated
     */
    private Long roleId;

    /**
     * 资源信息ID
     * @mbggenerated
     */
    private Long resourceId;

    /**
     * 
     * @mbggenerated
     */
    private Date createTime;

    /**
     * 
     * @mbggenerated
     */
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_role_resource
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     * @param id 
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 角色信息ID
     * @mbggenerated
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * 角色信息ID
     * @param roleId 角色信息ID
     * @mbggenerated
     */
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * 资源信息ID
     * @mbggenerated
     */
    public Long getResourceId() {
        return resourceId;
    }

    /**
     * 资源信息ID
     * @param resourceId 资源信息ID
     * @mbggenerated
     */
    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * 
     * @mbggenerated
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     * @param createTime 
     * @mbggenerated
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     * @mbggenerated
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     * @param updateTime 
     * @mbggenerated
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_resource
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleId=").append(roleId);
        sb.append(", resourceId=").append(resourceId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}